/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package skat.player;

import java.util.*;
import skat.*;
import skat.collections.Hand;

/**
 *
 * @author weinpau
 */
public class PlayerGroup extends ArrayList<Player> {
	private Hand groupCards = new Hand();
	
	public PlayerGroup(Player p) {
		add(p);
	}
	
	public PlayerGroup(Player p1, Player p2) {
		add(p1);
		add(p2);
	}
	
	public void clearCards() {
		groupCards.clear();
	}
	
	public void addCards(Collection<Card> cards) {
		groupCards.addAll(cards);
	}
	
	public void addCard(Card c) {
		groupCards.add(c);
	}
	
	public int getPoints() {
		return groupCards.getPoints();
	}
	
	

}
